package com.atguigu.annoaop;

import org.springframework.stereotype.Component;

@Component
public class CalculatorImpl implements Calculator {
    @Override
    public int add(int a, int b) {
        System.out.println(a+","+b);
        return a+b;
    }

    @Override
    public int sub(int a, int b) {
        return a-b;
    }
}
